<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi@vip.qq.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------

namespace Manage\Controller;
use User\Api\UserApi as UserApi;

class IndexController extends ManageController {
	
	public function _initialize(){
		parent::_initialize();
		$this->assign('left_menu','INDEX');
	}

	/**
	* 主页-我的账号
	* @date: 2015-9-10 14:40
    * @author: 刘炎炎
	* @return:
	*/
    public function index(){ 
    	
    	//获取公告信息
    	$announcementLogic = D('Announcement','Logic');
    	
    	$announcement = $announcementLogic -> order('id DESC')-> field ('content,createtime,isred') -> select();
    	$this->assign('announcement',$announcement);
    	
    	$this->display(); 
    }
    
    /**
     * 设置代理商的相关信息
     */
    public function agents(){
        $this->display();
    }
    
}